# 随机模块
import random

a = random.randint(1, 10)  # 生成一个1-10之间的随机整数
print(a)

#  随机选择  列表、元组、字符串
b = 'python'
c = random.choice(b)
print(c)

# 精确导入 用什么导什么
from random import randint, choice
tw = randint(1, 10)
b = 'python'
c = choice(b)
print(tw)
